package cn.dansj.service.Impl;

import cn.dansj.entity.DbaUser;
import cn.dansj.repository.DbaUserRepository;
import cn.dansj.service.DbaUserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DbaUserServiceImpl implements DbaUserService {
    private final DbaUserRepository dbaUserRepository;

    public DbaUserServiceImpl(DbaUserRepository dbaUserRepository) {
        this.dbaUserRepository = dbaUserRepository;
    }

    @Override
    public List<DbaUser> getUsers() {
        return dbaUserRepository.findAll();
    }
}
